package com.zcxy.fast.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zcxy.fast.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 平台-角色表
 *
 * @author zcc
 * @email  860474958@qq.com
 * @date   2021-01-06 17:10:37
 */
@Data
@TableName(value ="sys_role",autoResultMap = true)
@ApiModel(value = "SysRole", description = "平台-角色表")
public class SysRole extends BaseEntity {

    @NotEmpty(message = "roleName为必填字段")
    @Length(max = 100, message = "roleName 超出最大长度：100")
    @ApiModelProperty(value = " 角色名称", required = false)
    private String roleName ;

    @NotEmpty(message = "roleCode为必填字段")
    @Length(max = 100, message = "roleCode 超出最大长度：100")
    @ApiModelProperty(value = " 角色编码", required = false)
    private String roleCode ;

    @Length(max = 512, message = "remark 超出最大长度：512")
    @ApiModelProperty(value = " 备注", required = false)
    private String remark ;

    @TableId(type = IdType.UUID)
    @Length(max = 32, message = "id 超出最大长度：32")
    @ApiModelProperty(value = " 主键", required = false)
    private String id ;

    @Length(max = 1, message = "status 超出最大长度：1")
    @ApiModelProperty(value = " 状态(0停用1正常)", required = false)
    private String status ;



}
